package com.wteam.dragon.model.pojo.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * @Author 陈晓辉
 * @Date 2020/4/1 19:44
 */
@Data
@TableName("dept")
public class DeptDto implements Serializable{
    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private Boolean enabled;

    private Long pid;

    private Timestamp createTime;

    private Long sort;

    @TableLogic
    private Boolean isDelete;

    @TableField(exist = false)
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<DeptDto> children;
}
